<template>
    <div class="index">
        <el-container>
            <el-header>
                <Header></Header>
            </el-header>
            <el-container>
                <el-aside width="200px">
                    <Aside></Aside>
                </el-aside>
                <el-main>
                    <router-view></router-view>
                </el-main>
            </el-container>
        </el-container>
    </div>

</template>

<script>
    import Header from '../components/Header/index'
    import Aside from '../components/Aside/index'

    export default {
        name: "index",
        components:{
            Header,
            Aside
        }
    }
</script>

<style lang="less">
    .index{
        height: 100%;
    }
    .el-header {
        height: 200px;
        color: #333;
        text-align: center;
        line-height: 60px;
        background: #ffffff;
        box-shadow: 15px 15px 20px 20px rgb(0 0 0 / 12%);
        margin-bottom: 1px;
    }

    .el-aside {
        width: 200px;
        color: #333;
        text-align: center;
        line-height: 200px;
        background: #00032a;
        box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.06);
    }

    .el-main {
        height: 100%;
        /*height: 876px;*/
        background-color: rgb(250,250,250);
        color: #333;
        text-align: center;
        padding-top: 7px;
        /*line-height: 160px;*/
    }
    .el-container{
        height: 100%;
    }

    body > .el-container {
        margin-bottom: 40px;
    }

    .el-container:nth-child(5) .el-aside,
    .el-container:nth-child(6) .el-aside {
        line-height: 260px;
    }

    .el-container:nth-child(7) .el-aside {
        line-height: 320px;
    }
</style>
